package com.cool.config;

/**
 * @author bian
 * @date 2021-03-30
 */
public enum ServiceCodeEnum {
    SUCCESS(0, "operation success"), FAIL(1, "operation fail");

    private final int code;
    private final String desc;

    ServiceCodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
